<?
require("functions.php");


if (!isset($_SESSION["groupe"])) {
	echo '<?xml version="1.0" encoding="utf-8" ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="cs" lang="cs">
	<head>
		<title>'.$lang["groupe"].'</title>
	</head>
	<body class="form">
		<form action="'.SERVICE_URL.'login.php" method="post">
			<locify:variables>
				<locify:element name="latitude" value="$lat" />
				<locify:element name="longitude" value="$lon" />
			</locify:variables>
			<fieldset>
				<locify:where />
				<input type="hidden" name="latitude" value="" />
				<input type="hidden" name="longitude" value="" />
				<br />
				'.$lang["groupe"].': <input type="text" name="groupe" value="" />
				<br />
				'.$lang["password"].': <input type="text" name="heslo" value="" />
				<br />
				'.$lang["nick"].': <input type="text" name="nick" value="'.$_SESSION["nick"].'" />
				<br />
				<input type="submit" value="'.$lang["enter"].'" name="submit" />
			</fieldset>
		</form>
	</body>
	</html>';
} else {
	echo '<?xml version="1.0" encoding="utf-8" ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="cs" lang="cs">
	<head>
		<title>'.$lang["groupe"].'</title>
	</head>
	<body>
	  '.$lang["back_groupe"].'
	</body>
	</html>';
   	
}

?>
